package com.sky.Service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.vo.DishVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface   DishService extends IService<Dish> {
    public PageResult getByPage(DishPageQueryDTO dishPageQueryDTO);
    @Transactional
    public void addDishInfoWithFlavor(DishDTO dishDTO);
    public void updateDishStatus(Integer status,Long id);
    public DishDTO getDishById(Long id);
    @Transactional
    public void modifyDishInfo(DishDTO dishDTO);
    @Transactional
    public void deleteDishByIds(Long[] ids);
    public List<Dish> selectDishesByCategoryId(Long categoryId);


    public List<DishVO> getDishListById(Long categoryId);

}
